Conversation
Use an USB storage device to deploy payloads on-demand while the Packe Squirrel is already set up and running.
|
|
||
| LED FINISH | ||
|
|
||
| while true; do |
There was a problem hiding this comment.
Using this loop, the payload a appears to be repeatedly triggered. I would add a flag to make sure it only runs once.
There was a problem hiding this comment.
It's intentional... since no flag is used, you can run multiple “drive-by” payloads from the USB without having to restart the main payload on the squirrel after every single use.
The delay in line 26 provides the user enough time to unplug the USB when the “drive-by” payload finished, so that it is not unintentionally triggered again.
There was a problem hiding this comment.
Please add LED indication that the payload is running so the user knows when to unplug the USB. In its current state it would be difficult to know when the payload has been transferred and is running. I would also recommend using a variable for the payload name to make user configuration easier, just in case someone wants to use something other than payload.txt.
Use an USB storage device to deploy payloads on-demand while the Packet Squirrel is already set up and running.